package com.lx.algorithm.ac;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2021-12-27 17:45:37
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2021-12-27     张李鑫                     1.0         1.0 Version
 */
public class Node {
    /**
     * 后续的路
     */
    public Node[] ways;
    /**
     * 代表结束的字符
     */
    public String endStr;
    /**
     * 当前是否被选择
     */
    public Boolean isSelect;
    /**
     * fail节点
     */
    public Node fail;

    public Node(Node[] ways, String endStr, Boolean isSelect, Node fail) {
        this.ways = ways;
        this.endStr = endStr;
        this.isSelect = isSelect;
        this.fail = fail;
    }

    public Node() {
        this.ways=new Node[26];
    }
}
